import 'package:flutter/material.dart';

class BannerDemo extends StatefulWidget {
  @override
  _BannerDemoState createState() => _BannerDemoState();
}

class _BannerDemoState extends State<BannerDemo> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Banner(
          message: 'ggb',
          location: BannerLocation.topStart,
          textStyle: TextStyle(color: Colors.white),
          child: Container(color: Colors.yellow),
          color: Colors.blue),
    );
  }
}
